package com.yunli.mall.schema.entity;

import com.yunli.mall.common.schema.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by liushaoming on 15/10/5.
 */
@Data
@NoArgsConstructor
public class PayOrder extends BaseEntity {
    private String seckillId;

    private  String userPhone;

    private int state;

    // 多对一
    private Seckill seckill;

    public PayOrder(String seckillId, String userPhone, int state) {
        this.seckillId = seckillId;
        this.userPhone = userPhone;
        this.state = state;
    }

    @Override
    public String toString() {
        return "PayOrder{" +
                "seckillId=" + seckillId +
                ", userPhone=" + userPhone +
                ", state=" + state +
                '}';
    }
}
